﻿#define _CRT_SECURE_NO_WARNINGS 1
#include"SIMS.h"
int main(void)
{
	int x;
	printf("      ^0^      \n正在初始化·····\n");
	inilist(&local_list);
	inilist(&list_1);
	inilist(&list_2);
	inilist(&list_3);
	inilist(&list_I_like);
	Sleep(500);
	clear();
	printf("      =^-^=     \n正在读取歌单·····\n");
	reading(list1, &list_1);
	reading(list2, &list_2);
	reading(list3, &list_3);
	reading(loc_list, &local_list);
	reading(listIlike, &list_I_like);
	Sleep(500);
	clear();
	do
	{
		menu();
		scanf("%d", &x);
		switch (x)
		{
		case LIST:clear(); playlist(); break;
		case LISTILIKE:clear();printf("\t\t\t我喜欢\n"); show(&list_I_like); system("pause"); clear(); break;
		case LOCALLIST:clear(); local(); break;
		case SEARCH:clear(); search(); break;
		case ADD:clear(); add(loc_list);break;
		case CHANGE:clear(); change(); break;
		case DEL:clear(); popmusic(); break;
		case Exit:SystemExit(); break;
		default:printf("输入错误，请重新输入\n");
		}
	} while (x != 8);
	return 0;
}
